<div id="head">
  <div id="logo">
    <a href="/"><%= image_tag 'logo.gif' %></a>
  </div>
  <div id="head_body">
    <div class="login_helper common_link">
      <%unless current_user.nil?%>
        <%=  link_to current_user.nickname ,user_path(current_user)%>
      <%else%>
        <%=link_to "登录",login_path%>
      <%end%>
      &nbsp;|&nbsp;
      <%unless current_user.nil?%>
        <%=link_to "注销",logout_path%>
      <%else%>
        <%=link_to "注册",signup_path%>
      <%end%>
      &nbsp;|&nbsp;<a href="javascript:;" onClick="addCookie('<%=$index_server_url%>','大满足日本语')" >加入收藏</a>
      &nbsp;|&nbsp;<a href="javascript:;" onClick="setHomepage('<%=$index_server_url%>')" >设为首页</a></span>
    </div>
    <div id="globalnav">
      <ul>
        <li class="common_link">
          <a href="#">首页</a>
        </li>
        <li class="selected">
          <a href="#">用户中心</a>
        </li>
        <li class="common_link">
          <a href="#">课程中心</a>
        </li>
      </ul>
    </div>
    <div class="search"></div>
  </div>
</div>